#include "ThreadPool.hpp"
#include "Task.hpp"

#include <unistd.h>

int main()
{
    int x, y;
    char op;
    threadPool<Task> pool;

    while (1)
    {
        std::cout << "请输入数据1# ";
        std::cin >> x;
        std::cout << "请输入数据2# ";
        std::cin >> y;
        std::cout << "请输入你要进行的运算#";
        std::cin >> op;
        Task t(x, y, op, mymath);
        
        pool.push(t);

        sleep(1);
    }

    return 0;
}